package net.viservice.util;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class ThreadUtil {

	protected static Logger logger = LoggerFactory.getLogger(ThreadUtil.class);

	/**
	 * 线程暂停执行
	 * 
	 * @param millis
	 *            暂停的毫秒
	 */
	public static void delay(long millis) {
		
		logger.info("Thread delay millis:" + millis);

		try {
			Thread.sleep(millis);
		} catch (InterruptedException e) {
			logger.error("Thread delay error:" + e.getMessage());
		}
	}

}
